package com.freeter.modules.article.service.impl;

import org.springframework.stereotype.Service;
import java.util.Map;
import java.util.List;

import com.baomidou.mybatisplus.mapper.Wrapper;
import com.baomidou.mybatisplus.mapper.EntityWrapper;
import com.baomidou.mybatisplus.plugins.Page;
import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import com.freeter.common.utils.PageUtils;

import com.freeter.modules.article.dao.NcCmsArticleClassDao;
import com.freeter.modules.article.entity.NcCmsArticleClassEntity;
import com.freeter.modules.article.service.NcCmsArticleClassService;
import com.freeter.modules.article.entity.vo.NcCmsArticleClassVO;
import com.freeter.modules.article.entity.view.NcCmsArticleClassView;
import com.freeter.common.utils.PageInfo;

@SuppressWarnings({"unchecked","rawtypes"})
@Service("ncCmsArticleClassService")
public class NcCmsArticleClassServiceImpl extends ServiceImpl<NcCmsArticleClassDao, NcCmsArticleClassEntity> implements NcCmsArticleClassService {


    @Override
	public PageUtils queryPage(PageInfo pageInfo, Wrapper<NcCmsArticleClassEntity> wrapper) {
		  	Page<NcCmsArticleClassView> page =pageInfo.getPage();
	        page.setRecords(baseMapper.selectListView(page,wrapper));
	    	PageUtils pageUtil = new PageUtils(page);
	    	return pageUtil;

 	}
    
    @Override
	public List<NcCmsArticleClassVO> selectListVO( Wrapper<NcCmsArticleClassEntity> wrapper) {
 		return baseMapper.selectListVO(wrapper);
	}
	
	@Override
	public NcCmsArticleClassVO selectVO( Wrapper<NcCmsArticleClassEntity> wrapper) {
 		return baseMapper.selectVO(wrapper);
	}
	
	@Override
	public List<NcCmsArticleClassView> selectListView(Wrapper<NcCmsArticleClassEntity> wrapper) {
		return baseMapper.selectListView(wrapper);
	}

	@Override
	public NcCmsArticleClassView selectView(Wrapper<NcCmsArticleClassEntity> wrapper) {
		return baseMapper.selectView(wrapper);
	}

}
